package com.liziguo.lzgfp.server;

import com.liziguo.lzgfp.server.netty.Server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class ServerApplication implements CommandLineRunner {
//ApplicationRunner CommandLineRunner
    @Autowired
    private Server server;

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(ServerApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        server.run();
    }
}
